const app = getApp()
Component({
  mixins: [],
  data: {
  },
  props: {
    openPop: false,
    onCounterPlusOne: () => console.log('1'),
    active: '',
  },
  methods: {
    plusOne() {
      this.props.onCounterPlusOne()
    },
    onActive() {
      
      // this.setData({
      //   showWebview: true,
      // })
      // console.log('123')
      // my.call('startApp',{
      //   appId: '2019110168820582',
      //   param: {
      //     url: 'https://render.alipay-eco.com/p/q/ju3tb0xd?&chInfo=cqqp'
      //   }
      // })
      // return
      // alipays://platformapi/startapp?appId=60000155&chInfo=ch_2019110168820582
      // alipays://platformapi/startapp?appId=20000067&url=https%3a%2f%2frender.alipay-eco.com%2fp%2fq%2fju3tb0xd%3f%26chInfo%3dcqqp
        // path:'alipays://platformapi/startapp?appId=20000067&url=http%3A%2F%2Fm.taobao.com&chInfo=ch_2019110168820582',
      // https://render.alipay-eco.com/p/q/ju3tb0xd?&chInfo=cqqp
      my.call('startApp', {
        appId: '20000067',
        param:{
          url:'https://render.alipay-eco.com/p/q/ju3tb0xd?&chInfo=cqqp',
        },
        success: (res) => {
          // my.alert({
          //   content: JSON.stringify(res)
          // });
        },
        fail: (error) => {
          my.alert({
            content: '失败了' + JSON.stringify(error)
          });
        }
      });
      // my.ap.navigateToAlipayPage({
      //   path:'alipays://platformapi/startapp?appId=20000067&url=https%3a%2f%2frender.alipay-eco.com%2fp%2fq%2fju3tb0xd%3f%26chInfo%3dcqqp',
      //   success:(res) => {
      //       // my.alert({content:'系统信息' + JSON.stringify(res)});
      //   },
      //   fail:(error) => {
      //       // my.alert({content:'系统信息' + JSON.stringify(error)});        
      //   }
      // })
    }
  },
});